import axios from 'axios';

let base = 'http://39.109.117.98:19527';

// export const requestLogin = params => { return axios.post(`${base}/api/TYAdmin/lg`, params).then(res => res.data); };
export const requestLogin = params => { return axios.post(`/api/TYAdmin/lg`, params).then(res => res.data); };

export const topUpDown = params => { return axios.post(`/api/TYAdmin/v1/top-up-down`, params).then(res => res.data); };
export const betSlipSomeone = params => { return axios.post(`/api/TYAdmin/v1/bet-slip-someone`, params).then(res => res.data); };
export const registerUser = params => { return axios.get(`/api/TYAdmin/v1/statistics/register-user/${params.type}/${params.date}`, params).then(res => res.data); };
export const allRevenue = params => { return axios.get(`/api/TYAdmin/v1/statistics/all-revenue`, params).then(res => res.data); };
export const revenue = params => { return axios.get(`/api/TYAdmin/v1/statistics/revenue/${params.type}/${params.date}`, params).then(res => res.data); };

